<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="cn" class="no-js">
<head>

    <meta charset="utf-8" />

    <title>商城后台</title>

    <meta content="width=device-width, initial-scale=1.0" name="viewport" />

    <meta content="" name="description" />

    <meta content="" name="author" />

    <!-- BEGIN GLOBAL MANDATORY STYLES -->

    <link href="/Public/media/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/style-metro.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/style.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/style-responsive.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>

    <link href="/Public/media/css/uniform.default.css" rel="stylesheet" type="text/css"/>

    <!-- END GLOBAL MANDATORY STYLES -->

    <link rel="shortcut icon" href="/Public/media/image/favicon.ico" />

</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="page-header-fixed">

<!-- BEGIN HEADER -->

<div class="header navbar navbar-inverse navbar-fixed-top">

    <!-- BEGIN TOP NAVIGATION BAR -->

    <div class="navbar-inner">

        <div class="container-fluid">

            <!-- BEGIN LOGO -->

            <a class="brand" href="index.html">

                <img src="/Public/media/image/logo.png" alt="logo"/>

            </a>

            <!-- END LOGO -->

            <!-- BEGIN RESPONSIVE MENU TOGGLER -->

            <a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">

                <img src="/Public/media/image/menu-toggler.png" alt="" />

            </a>

            <!-- END RESPONSIVE MENU TOGGLER -->

            <!-- BEGIN TOP NAVIGATION MENU -->

            <ul class="nav pull-right">
                <li class="dropdown user">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="username" style="font-size: 16px">您好，<?php echo session('username'); ?></span>
                        <i class="icon-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="divider"></li>
                        <li><a href="<?php echo U('Login/logout');?>"><i class="icon-key"></i> 注销 </a></li>

                    </ul>

                </li>

                <!-- END USER LOGIN DROPDOWN -->

            </ul>

            <!-- END TOP NAVIGATION MENU -->

        </div>

    </div>

    <!-- END TOP NAVIGATION BAR -->

</div>

<!-- END HEADER -->

<!-- BEGIN SIDEBAR -->

<div class="page-sidebar nav-collapse collapse">

    <!-- BEGIN SIDEBAR MENU -->

    <ul class="page-sidebar-menu">
        <li>
            <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
            <div class="sidebar-toggler hidden-phone"></div>

            <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        </li>
        <li>
            <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
            <form class="sidebar-search">
                <div class="input-box">
                    <a href="javascript:;" class="remove"></a>
                </div>

            </form>

            <!-- END RESPONSIVE QUICK SEARCH FORM -->

        </li>

        <li class="start active ">

            <a href="<?php echo U('Index/index');?>">

                <i class="icon-home"></i>

                <span class="title">首页</span>

                <span class="selected"></span>

            </a>

        </li>

        <?php
 $priModel = D('Privilege'); $btns = $priModel->getBtns(); foreach($btns as $k => $v): ?>
        <!--菜单开始-->
        <li class="">
            <a href="javascript:;">

                <i class="icon-bookmark-empty"></i>

                <span class="title"><?php echo $v['pri_name']?></span>

                <span class="arrow "></span>

            </a>
            <ul class="sub-menu">
                <?php foreach($v['children'] as $k1 => $v1): ?>
                <li >
                    <a href="<?php echo U($v1['module_name'].'/'.$v1['controller_name'].'/'.$v1['action_name']); ?>"
                       target="main-frame"><?php echo $v1['pri_name']?></a>
                </li>
                <?php endforeach; ?>
             <!--   <li >
                    <a href="<?php echo U('Brand/lst');?>">品牌列表</a>
                </li>
                <li >
                    <a href="<?php echo U('Category/lst');?>">分类列表</a>
                </li>
                <li >
                    <a href="<?php echo U('Type/lst');?>">类型列表</a>
                </li>-->
            </ul>

        </li>
        <?php endforeach; ?>
        <!--菜单结束-->

        <!--会员模块开始-->
       <!-- <li class="">

            <a href="javascript:;">

                <i class="icon-user"></i>

                <span class="title">会员模块</span>

                <span class="arrow "></span>

            </a>

            <ul class="sub-menu">

                <li >

                    <a href="<?php echo U('Member/lst');?>">会员列表</a>

                </li>

                <li >

                    <a href="login_soft.html">

                        Login Form 2</a>

                </li>

            </ul>

        </li>-->
        <!--会员模块结束-->

        <!--订单模块开始-->
       <!-- <li class="">

            <a href="javascript:;">

                <i class="icon-th"></i>

                <span class="title">订单模块</span>

                <span class="arrow "></span>

            </a>

            <ul class="sub-menu">

                <li >

                    <a href="<?php echo U('Order/lst');?>">订单详情</a>

                </li>

            </ul>

        </li>-->
        <!--订单模块结束-->

        <!--RBAC模块开始-->
       <!-- <li class="">

            <a href="javascript:;">

                <i class="icon-table"></i>

                <span class="title">RBAC</span>

                <span class="arrow "></span>

            </a>

            <ul class="sub-menu">

                <li >

                    <a href="<?php echo U('Privilege/lst');?>">权限列表</a>

                </li>

                <li >

                    <a href="<?php echo U('Role/lst');?>">角色列表</a>

                </li>

                <li >

                    <a href="<?php echo U('Admin/lst');?>">管理员列表</a>

                </li>

            </ul>

        </li>-->
        <!--RBAC模块结束-->

    </ul>

    <!-- END SIDEBAR MENU -->
</div>

<!-- END SIDEBAR -->

<!-- BEGIN PAGE LEVEL STYLES -->

<link href="/Public/media/css/jquery.gritter.css" rel="stylesheet" type="text/css"/>

<link href="/Public/media/css/daterangepicker.css" rel="stylesheet" type="text/css" />

<link href="/Public/media/css/fullcalendar.css" rel="stylesheet" type="text/css"/>

<link href="/Public/media/css/jqvmap.css" rel="stylesheet" type="text/css" /Public/media="screen"/>

<link href="/Public/media/css/jquery.easy-pie-chart.css" rel="stylesheet" type="text/css" /Public/media="screen"/>

<!-- END PAGE LEVEL STYLES -->

<!-- BEGIN CONTAINER -->

<div class="page-container">



    <!-- BEGIN PAGE -->

    <div class="page-content">

        <!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->

        <div id="portlet-config" class="modal hide">

            <div class="modal-header">

                <button data-dismiss="modal" class="close" type="button"></button>

                <h3>Widget Settings</h3>

            </div>

            <div class="modal-body">

                Widget settings form goes here

            </div>

        </div>

        <!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->

        <!-- BEGIN PAGE CONTAINER-->

        <div class="container-fluid">

            <!-- BEGIN PAGE HEADER-->

            <div class="row-fluid">

                <div class="span12">

                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->

                    <h3 class="page-title">

                        Dashboard <small>statistics and more</small>

                    </h3>

                    <ul class="breadcrumb">

                        <li>

                            <i class="icon-home"></i>

                            <a href="index.html">Home</a>

                            <i class="icon-angle-right"></i>

                        </li>

                        <li><a href="#">Dashboard</a></li>

                    </ul>

                    <!-- END PAGE TITLE & BREADCRUMB-->

                </div>

            </div>

            <!-- END PAGE HEADER-->

            <div id="dashboard">

                <!-- BEGIN DASHBOARD STATS -->

                <!-- END DASHBOARD STATS -->

                <div class="clearfix"></div>

                <div class="row-fluid">

                    <div class="span6">

                        <!-- BEGIN PORTLET-->

                        <div class="portlet solid bordered light-grey">

                            <div class="portlet-title">

                                <div class="caption"><i class="icon-bar-chart"></i>Site Visits</div>

                                <div class="tools">

                                    <div class="btn-group pull-right" data-toggle="buttons-radio">

                                        <a href="" class="btn mini">Users</a>

                                        <a href="" class="btn mini active">Feedbacks</a>

                                    </div>

                                </div>

                            </div>

                            <div class="portlet-body">

                                <div id="site_statistics_loading">

                                    <img src="/Public/media/image/loading.gif" alt="loading" />

                                </div>

                                <div id="site_statistics_content" class="hide">

                                    <div id="site_statistics" class="chart"></div>

                                </div>

                            </div>

                        </div>

                        <!-- END PORTLET-->

                    </div>

                    <div class="span6">

                        <!-- BEGIN PORTLET-->

                        <div class="portlet solid light-grey bordered">

                            <div class="portlet-title">

                                <div class="caption"><i class="icon-bullhorn"></i>Activities</div>

                                <div class="tools">

                                    <div class="btn-group pull-right" data-toggle="buttons-radio">

                                        <a href="" class="btn blue mini active">Users</a>

                                        <a href="" class="btn blue mini">Orders</a>

                                    </div>

                                </div>

                            </div>

                            <div class="portlet-body">

                                <div id="site_activities_loading">

                                    <img src="/Public/media/image/loading.gif" alt="loading" />

                                </div>

                                <div id="site_activities_content" class="hide">

                                    <div id="site_activities" style="height:100px;"></div>

                                </div>

                            </div>

                        </div>

                        <!-- END PORTLET-->

                        <!-- BEGIN PORTLET-->

                        <div class="portlet solid bordered light-grey">

                            <div class="portlet-title">

                                <div class="caption"><i class="icon-signal"></i>Server Load</div>

                                <div class="tools">

                                    <div class="btn-group pull-right" data-toggle="buttons-radio">

                                        <a href="" class="btn red mini active">

                                            <span class="hidden-phone">Database</span>

                                            <span class="visible-phone">DB</span></a>

                                        <a href="" class="btn red mini">Web</a>

                                    </div>

                                </div>

                            </div>

                            <div class="portlet-body">

                                <div id="load_statistics_loading">

                                    <img src="/Public/media/image/loading.gif" alt="loading" />

                                </div>

                                <div id="load_statistics_content" class="hide">

                                    <div id="load_statistics" style="height:108px;"></div>

                                </div>

                            </div>

                        </div>

                        <!-- END PORTLET-->

                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <!-- END PAGE CONTAINER-->
    </div>
    <!-- END PAGE -->
</div>
<!-- END CONTAINER -->

<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

<!-- BEGIN CORE PLUGINS -->

<script src="/Public/media/js/jquery-1.10.1.min.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>

<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->

<script src="/Public/media/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>

<script src="/Public/media/js/bootstrap.min.js" type="text/javascript"></script>

<!--[if lt IE 9]>

<script src="/Public/media/js/excanvas.min.js"></script>

<script src="/Public/media/js/respond.min.js"></script>

<![endif]-->

<script src="/Public/media/js/jquery.slimscroll.min.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.blockui.min.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.cookie.min.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.uniform.min.js" type="text/javascript" ></script>

<!-- END CORE PLUGINS -->

<!-- BEGIN PAGE LEVEL PLUGINS -->

<script src="/Public/media/js/jquery.vmap.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.vmap.russia.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.vmap.world.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.vmap.europe.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.vmap.germany.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.vmap.usa.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.vmap.sampledata.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.flot.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.flot.resize.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.pulsate.min.js" type="text/javascript"></script>

<script src="/Public/media/js/date.js" type="text/javascript"></script>

<script src="/Public/media/js/daterangepicker.js" type="text/javascript"></script>



<script src="/Public/media/js/fullcalendar.min.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.easy-pie-chart.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.sparkline.min.js" type="text/javascript"></script>

<!-- END PAGE LEVEL PLUGINS -->

<!-- BEGIN PAGE LEVEL SCRIPTS -->

<script src="/Public/media/js/app.js" type="text/javascript"></script>

<script src="/Public/media/js/index.js" type="text/javascript"></script>

<!-- END PAGE LEVEL SCRIPTS -->

<script>

    jQuery(document).ready(function() {

        App.init(); // initlayout and core plugins

        Index.init();

        Index.initJQVMAP(); // init index page's custom scripts

        Index.initCalendar(); // init index page's custom scripts

        Index.initCharts(); // init index page's custom scripts

        Index.initChat();

        Index.initMiniCharts();

        Index.initDashboardDaterange();

        Index.initIntro();

    });

</script>

<!-- END JAVASCRIPTS -->

</body>

<!-- END BODY -->

</html>

<!-- BEGIN FOOTER -->

<div class="footer">

    <div class="footer-inner">

        2013 &copy; Metronic by keenthemes.Collect from <a href="http://www.cssmoban.com/" title="网站模板" target="_blank">网站模板</a> - More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a>

    </div>

    <div class="footer-tools">

			<span class="go-top">

			<i class="icon-angle-up"></i>

			</span>

    </div>

</div>

<!-- END FOOTER -->